import request from '@/utils/request'
export function tmAdd(params = {}) {
    return request({
        url: '/tm/add',
        method: 'POST',
        data: params
    }).then((data) => {
        return data
    })
}

export function tmDelete(params = {}) {
    return request({
        url: '/tm/delete',
        method: 'POST',
        data: params
    }).then((data) => {
        return data
    })
}

export function tmDetail(params = {}) {
    return request({
        url: '/tm/detail',
        method: 'POST',
        data: params
    }).then(({
        data
    }) => {
        return data
    })
}

export function tmEdit(params = {}) {
    return request({
        url: '/tm/edit',
        method: 'POST',
        data: params
    }).then((data) => {
        return data
    })
}

export function tmList(params = {}) {
    return request({
        url: '/tm/list',
        method: 'POST',
        data: params
    }).then(({
        data
    }) => {
        return data
    })
}